<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <!-- <link rel="stylesheet" href="./fonts//demo.css"> -->
  <link rel="stylesheet" href="/admin/fonts/iconfont.css">
  <link rel="stylesheet" href="/admin/lib/layui/css/layui.css" />
  <style>
    .space_slide {
      margin: 10px 20px 30px 20px;
    }
  </style>
</head>

<body>

  <div class="layui-card space_slide">
    <div class="layui-card-header">
      <span class="layui-breadcrumb">
        <a href="https://5aebf8b605931.t73.qifeiye.com/">首页</a>
        <a href="/admin/goods/list"><cite>新闻资讯</cite></a>
        <a><cite>行业动态</cite></a>
        <a><cite>文章修改</cite></a>
      </span>
    </div>
    <div class="layui-card-body">
      <form class="layui-form" action="">


        <div class="layui-form-item">
          <label class="layui-form-label">文章名称</label>
          <div class="layui-input-block">
            <input type="text" name="pi_name" value="<%= data.article_name %>" class="layui-input" readonly>
          </div>
        </div>

        <div class="layui-form-item">
          <label class="layui-form-label">所属分类</label>
          <div class="layui-input-block">
            <input type="text" name="pc_name" value="<%= data.ac_name %>" class="layui-input" readonly>
          </div>
        </div>

        <div class="layui-form-item">
          <label class="layui-form-label">文章标题</label>
          <div class="layui-input-block">
            <input type="text" name="pi_title" value="<%= data.article_title %>" class="layui-input" readonly>
          </div>
        </div>

        <div class="layui-form-item">
          <label class="layui-form-label">文章标题</label>
          <div class="layui-input-block">
            <input type="text" name="pi_title" value="<%= data.article_date %>" class="layui-input" readonly>
          </div>
        </div>

        <div class="layui-form-item">
          <label class="layui-form-label">文章图片</label>
          <div class="layui-input-block">
            <img src="<%= data.article_pic  %> " alt="" width="200px">
            <input type="hidden" name="pi_img" id="pi_img_upload_input">
          </div>
        </div>



        <!-- 是否删除 -->
        <div class="layui-form-item">
          <label class="layui-form-label">是否展示</label>
          <div class="layui-input-block">
            <!-- 0删除 1未删除 -->

            <% if (data.is_show==0) { %>
            <input type="checkbox" name="yyy" lay-skin="switch" lay-text="已删除|未删除" readonly disabled checked>

            <!-- 说明已经被删除了 -->
            <% } else { %>
            <input type="checkbox" name="yyy" lay-skin="switch" readonly disabled lay-text="已删除|未删除">
            <% } %>
          </div>
        </div>


        <div class="layui-form-item">
          <label class="layui-form-label">项目描述</label>
          <div class="layui-input-block">
            <textarea id="richText" name="pi_content" style="display: none;"
              disabled><%= data.article_content %> </textarea>
          </div>
        </div>




      </form>
      <div class="layui-form-item">
        <div class="layui-input-block">

          <button class="layui-btn" onclick="goBack()">返回</button>
          <!-- <button type="reset" class="layui-btn layui-btn-primary">重置</button> -->
        </div>
      </div>
</body>

</html>
<script src="/admin/lib/layui/layui.js"></script>
<script>
  function goBack() {
    location.href = `/admin/news/industryindex/index`
    // document.his  page: '1', limit: '10'
    // history.back()
    // /admin/goods / details
    // $.ajax
  }
  window.onload = function () {


    layui.use(['upload', 'element', 'layer', 'form', 'jquery', 'upload', 'layedit'], function () {
      var {
        layer,
        element,
        upload,
        form,
        $,
        layedit
      } = layui
      //执行实例

      layedit.build('richText')
    })
  }
</script>